import { createRouter, createWebHistory } from 'vue-router';

// 路由配置
const routes = [
  {
    path: '/',
    component: () => import('@/views/Home.vue'),
  },
  {
    path: '/about',
    component: () => import('@/views/demo/About.vue'),
  },
  {
    path: '/about2',
    component: () => import('@/views/demo/About2.vue'),
  },
  {
    path: '/about3',
    component: () => import('@/views/demo/About3.vue'),
  },
  {
    path: '/about4',
    component: () => import('@/views/demo/About4.vue'),
  },
  {
    path: '/about5',
    component: () => import('@/views/demo/About5.vue'),
  },
];

// 创建路由实例
const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;
